<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ include file="houtai_mainhead.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<link rel="stylesheet" href="statics/css/manage.css" type="text/css"></link>
<script type="text/javascript" src="statics/js/usermanage.js"></script>

<style type="text/css">
.precontainer {
	position: relative;
	width: 200px;
	height: 200px;
	background-color: #eee;
}

.precontainer img {
	display: none;
	position: absolute;
}
</style>
<title>Insert title here</title>
<style type="text/css">
</style>

</head>

<body>
	<div class="handler">
		<form method="get">
			<input type="text" name="tel" placeholder="姓名/电话查询">
			<button class="search">查询</button>
		</form>
		<button class="blueadd" id="delete" onclick="deletesome(1)">-删除</button>
		<button class="blueadd"
			onclick="javascript:window.location.href='employeeopentianjia'">+添加</button>
	</div>
	<table>
		<thead>
			<tr>
				<th><input type="checkbox" onchange="checkAll(this)"></th>
				<th>员工姓名</th>
				<th>身份证编号</th>
				<th>电话</th>
				<th>生日</th>
				<th>状态</th>
				<th>操作</th>
			</tr>
		</thead>

		<tbody>

			<c:forEach items="${emList}" var="em">
				<tr>

					<td><input type="checkbox" onchange="check()"></td>
					<td>${em.ename}</td>
					<td>${em.eidentity}</td>
					<td>${em.etel}</td>
					<td>${em.ebir}</td>
					<td class="status">${em.estatus}</td>
					<td><div class="caozuo">
							<a class="red change" data-id=${em.eid }>修改</a> <a
								class="blue showphoto" data-id=${em.eid }>查看头像</a>
							<div style="display: none;" id="head${em.eid }">
								<form action="" method="post" enctype="multipart/form-data">
									<img class="photo" width="250px" height="350px" alt="司机照片"
										src="statics/image/upload/employee/${em.ephoto }"> 
									<div style="margin: 20px auto;">
										<a class="file" onclick="$(this).siblings('input[id=lefile]').click();">更换照片</a>
										<input id="lefile" type="file" onchange="previewFile(this)" name="tx" style="display: none" /> 
									</div>
								</form>
							</div>
						</div></td>
				</tr>

			</c:forEach>
		</tbody>
	</table>

	<div id="modify">
		<form action="" method="post">
			<span>姓&nbsp;&nbsp;名：</span><input name="ename"><br> <span>身份证：</span><input
				name="eidentity"><br> <span>电&nbsp;&nbsp;话：</span><input
				name="etel"><br> <span>生&nbsp;&nbsp;日：</span><input
				class="bir" name="ebir" readonly="readonly" onfocus="WdatePicker()"><br>
			<span>状&nbsp;&nbsp;态：</span><select name="selectname">
				<option>空闲中</option>
				<option>工作中</option>
			</select><br> <input type="hidden" name="eid" value="">
			<button class="btn">确定</button>
		</form>
	</div>








	<div id="temp"></div>


</body>
</html>